package com.spring.initializingbean_demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
	public static void main(String[] args) throws Exception {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
		InitService initService = (InitService) context.getBean("initService");
		DestroyService destroyService = (DestroyService) context.getBean("destroyService");
		System.out.println("...");
		PostService postService = (PostService) context.getBean("postService");
	}
}
